<template>
  <div id="flink">
    <div class="flink-line"></div>
    <div class="friendly-link">
      <div class="container">
        <h1>友情链接 <span>Links</span></h1>
        <div class="link-items" v-html="linkView">
          <!-- <view v-html="linkView"></view> -->
          <!-- <a href="http://www.zjut.edu.cn/" target="_blank">浙江工业大学</a>
          <span>丨</span
          ><a href="http://www.law.zjut.edu.cn/jsp/index.jsp" target="_blank">
            浙江工业大学法学院</a
          >
          <span>丨</span
          ><a href="https://www.cnipa.gov.cn/" target="_blank">
            国家知识产权局</a
          >
          <span>丨</span> -->
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import { getSuperlink } from '@/service/getData.js'
export default {
  data(){
    return {
      linkView:''
    }
  },
  created(){
    this.getLink()
  },
  methods:{
     async getLink() {
      let data = await getSuperlink()
      console.log('---link---',data.link);
      if (data.link) {
        this.linkView = data.link
      }
    },
  }
}
</script>
<style>
</style>